import rules from "@/utils/validate";
export const formList = [
  {
    key: "username",
    label: "用户名",
    placeholder: "请输入",
    rules: [{ required: true, message: "请输入用户名", trigger: "blur" }],
  },
  {
    key: "password",
    label: "密码",
    placeholder: "请输入",
    rules: [{ required: true, message: "请输入用户名", trigger: "blur" }],
  },
  {
    key: "mobile",
    label: "手机号",
    placeholder: "请输入",
    rules: [
      { required: true, message: "请输入用户名", trigger: "blur" },
      { pattern: rules.phone, message: "手机号格式不正确", trigger: "blur" },
    ],
  },
  {
    key: "user_roles",
    label: "角色",
    type:'slot',
    placeholder: "请选择",
    rules: [{ required: true, message: "请选择角色", trigger: "blur" }],
  },
];
